package com.codes.dao;

import com.codes.model.Logistics;

import java.util.List;
import java.util.Map;

public interface LogisticsMapper {
    int deleteByPrimaryKey(Integer id);
    // deleteByWorkOrderId
    int deleteByWorkOrderId(Integer id );

    int insert(Logistics record);

    int insertSelective(Logistics record);

    Logistics selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Logistics record);

    int updateByPrimaryKey(Logistics record);



    // insertByMap
    int insertByMap(Map<String,Object> map);

    // getLogisticsByOrderId
    List<Map<String,Object>> getLogisticsByOrderId(Map map);

    // getListByDriverId
    List<Map<String,Object>> getListByDriverId(Map map);

    // getInfoByLogisticsId
    Map getInfoByLogisticsId(Map m);

    int updateByMap(Map map);

    // getCountByOrderId
    int  getCountByOrderId(Map map);

    int getCount(Map map);

    // getListByRole
    List<Map<String,Object>> getListByRole(Map m );


    //end
}